package com.aps.entity.eunm;

/**
 * @author liaoguangan
 * @description <>
 * @date 2018/4/6 9:20
 */
public enum ResultType {
    SUCCESS(200, "操作成功"),
    SERVER_ERROR(500, "服务器错误"),

    DISH_NOT_EXIST(500, "菜品不存在"),

    RECORD_NOT_EXIST(500, "记录不存在"),
    RECORD_ALWAYS_EXIST(500, "记录已存在"),

    DEVICE_CODE_EXIST(500, "设备代码已存在"),
    DEVICE_NOT_EXIST(500, "设备不存在");

    private int code;

    private String desc;

    ResultType(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
